package com.example.demo.store;

import com.example.demo.entity.Rule;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Scope("singleton")
public class GlobalStore<T> {
    private List<T> list;

    public void setValue(List<T> rules){
        this.list = rules;
    }
    public List<T> getValue(){
        return this.list;
    }
}
